package com.ruoyi.odorservice.model.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ruoyi.odorservice.model.bean.MaterialConcentrationBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SiteComparisonVo {

    @ApiModelProperty("点位名称")
    private String siteName;

    @ApiModelProperty("总浓度")
    private Double totalConcentration;

    @ApiModelProperty("物质类型列表")
    private List<MaterialTypeConcentration> materialTypeConcentrationList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @EqualsAndHashCode(exclude = {"concentration", "count"})
    public static class MaterialTypeConcentration {

        @ApiModelProperty("类型名称")
        private String typeName;

        @ApiModelProperty("浓度")
        private Double concentration;

        @JsonIgnore
        private Integer count;

    }


}
